import java.io.InputStreamReader;
import java.util.Scanner;
class Test{
	
	public static void main(String args []){	
		String input;
		String output;
		while(true){
			System.out.println("input a string :");
			//System.out.flush();
			Scanner scanner = new Scanner(System.in);
			input = scanner.nextLine();
			
			if(input.equals(""))
				break;
			Reverse reverse = new Reverse(input);
			output = reverse.Convert();
			System.out.println(output);
		}		
	}
}